<%--
  Created by IntelliJ IDEA.
  User: Admin
  Date: 2020/9/7
  Time: 9:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<html>
  <head>
    <title>英雄管理系统</title>
  </head>
  <body>
  <c:choose>
    <c:when test="${!empty username}">
      <a href="${pageContext.request.contextPath}\FileAllServlet">查询英雄</a><br>
      <a href="${pageContext.request.contextPath}\AddHero.jsp">添加英雄</a>
    </c:when>
    <c:when test="${empty username}">
      <a href="${pageContext.request.contextPath}\Login.jsp">登陆用户</a>
    </c:when>
  </c:choose>
  </body>
</html>
